package cn.bijy.sqlsession;

import cn.bijy.pojo.Configuration;
import cn.bijy.pojo.MapedStatement;

import java.sql.SQLException;
import java.util.List;

public interface Executor {
    <E> List<E> query(Configuration configuration, MapedStatement mapedStatement, Object...param) throws Exception;
    void close() throws SQLException;

    <T> T save(Configuration configuration,MapedStatement mapedStatement,Object...param) throws Exception;;
    <T> T update(Configuration configuration,MapedStatement mapedStatement,Object...param) throws Exception;;
}
